#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([proxyd], [0.1.0], [kayaklee@ymail.com])
AM_INIT_AUTOMAKE(proxyd, 0.1)

# Checks for programs.
AC_PROG_CC

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/time.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_UINT32_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([gettimeofday memset socket])

AM_CFLAGS="-g -O2 -finline-functions -D__STDC_LIMIT_MACROS \
           -Wall -Werror -Wextra -Wunused-parameter -Wformat -fno-strict-aliasing -Wconversion -Wno-deprecated"
AC_SUBST([AM_CFLAGS])

AC_CONFIG_FILES([Makefile
                 src/Makefile])
AC_OUTPUT
